
<!-- 轮播图百度模板 -->
<script type="text/html" id="bannerTemplate">
	<%for(var i=0;i<data.length;i++){%>
   		<div class="swiper-slide"><img src=<%=data[i].imgUrl%>></div>
    <%}%>
</script>

<!-- 轮播图边侧导航 -->
<script type="text/html" id="banner_nav_Template">
	<%for(var i=0;i<data.length;i++){%>
		<li class="banner_nav_li" name="banner_nav_serction<%=i%>">
			<p class="banner_nav_p banner_nav_p<%=i%>"></p>
			<h2 class="banner_nav_h2"><%=data[i].title%></h2>
			<%for(var j=0;j<data[i].mainCity.length;j++){%>
				<a href="#"><%=data[i].mainCity[j]%></a>
			<%}%>
			<span class="banner_nav_span"></span>
		</li>
    <%}%>
</script>
<!-- 轮播图边侧导航详情 -->
<script type="text/html" id="banner_Details_Template">
	<%for(var i=0;i<data.length;i++){%>
		<div class="banner_nav_serction" id="banner_nav_serction<%=i%>">
		<%if (i!=5) {%>
			<%for(var j=0;j<data[i].moreCity.length;j++){%>
	    		<div class="banner_nav_Dcontent">
	    			<div class="banner_nav_common">
	    				<h2><%=data[i].moreCity[j].cityName%></h2>
	    				<ul class="banner_nav_list">
	    					<li>
	    						<%for(var n=0;n<data[i].moreCity[j].items.length;n++){%>
		    						<a href="#"><%=data[i].moreCity[j].items[n]%></a>
	    						<%}%>
	    					</li>
	    				</ul>
	    			</div>	
	    		</div>
    		<%}%>
    		<img src=<%=data[i].moreCityImg%>>
		<%}else{%>
			<%for(var j=0;j<data[i].moreCity.length;j++){%>
	    		<div class="banner_nav_Dcontent">
	    			<div class="banner_nav_common">
	    				<h2><%=data[i].moreCity[j].cityName%></h2>
	    				<ul class="banner_nav_list">
	    					<li>
	    						<%for(var n=0;n<data[i].moreCity[j].items.length;n++){%>
		    						<a href="#"><img src=<%=data[i].moreCity[j].items[n]%>></a>
	    						<%}%>
	    					</li>
	    				</ul>
	    			</div>	
	    		</div>
    		<%}%>
		<%}%>	
    	</div>
    <%}%>
</script>

<!-- 限时特卖 -->

<!-- 机酒自由行 -->
<script type="text/html" id="free_Template">
	<%for(var i=0;i<data.length;i++){%>
		<li><%=data[i].title%></li>
    <%}%>
</script>

<script type="text/html" id="free_details_Template">
	<%for(var i=0;i<data.length;i++){%>
		<div class="free_list" index=<%=i%>>
			<%for(var j=0;j<data[i].data.length;j++){%>
				<dl class="free_list_dl">
					<dt><img src=<%=data[i].data[j].imgUrl%> alt=""></dt>
					<div>
						<span>机票</span>
						<p><em><%=data[i].data[j].price%></em>元起</p>
					</div>
					<dd>
						<h3><%=data[i].data[j].title%></h3>
						<p>旅行时间 2017/03-2017/06</p>
					</dd>
				</dl>
			<%}%>
			<div class="free_more">
				<p class="title">
					查看更多<br>
					机酒自由行产品
				</p>
				<span class="free_more_span"></span>
				<p class="free_more_p">
					<a href="#">机票</a>
					<a href="#">酒店</a>
					<a href="#">机+酒</a>
					<a href="#">邮轮</a>
				</p>
			</div>
		</div>
    <%}%>
</script>

<!-- 城市玩乐 -->
<script type="text/html" id="city_details_Template">
	<%for(var i=0;i<data.length;i++){%>
		<div class="city_section" index=<%=i%>>
			<%for(var j=0;j<data[i].data.length;j++){%>
				<dl class="city_section_dl">
	    			<dt><img src=<%=data[i].data[j].imgUrl%>></dt>
					<dd>
						<h3><%=data[i].data[j].title%></h3>
						<p><b>城市玩乐</b><span><em><%=data[i].data[j].price%></em>元起</span></p>
					</dd>
	    		</dl>
			<%}%>
			<div class="city_more free_more">
				<p class="title">
					查看更多<br>
					机酒自由行产品
				</p>
				<span class="city_more_span free_more_span"></span>
				<p class="city_more_p free_more_p">
					<a href="#">WiFi电话卡</a>
					<a href="#">交通票券</a>
					<a href="#">景点门票</a>
					<a href="#">特色体验</a>
				</p>
			</div>
		</div>
    <%}%>
</script>

<script type="text/html" id="theme_details_Template">
	<%for(var i=0;i<data.length;i++){%>
		<div class="theme_list">
			<%for(var j=0;j<data[i].data.length;j++){%>
				<dl class="free_list_dl theme_list_dl">
					<dt><img src=<%=data[i].data[j].imgUrl%> alt=""></dt>
					<div>
						<span>机票</span>
						<p><em><%=data[i].data[j].price%></em>元起</p>
					</div>
					<dd>
						<h3><%=data[i].data[j].title%></h3>
						<p>旅行时间 2017/03-2017/06</p>
					</dd>
				</dl>
			<%}%>
			<div class="free_more">
				<p class="title">
					查看更多<br>
					机酒自由行产品
				</p>
				<span class="free_more_span"></span>
				<p class="free_more_p">
					<a href="#">机票</a>
					<a href="#">酒店</a>
					<a href="#">机+酒</a>
					<a href="#">邮轮</a>
				</p>
			</div>
		</div>
    <%}%>
</script>
